/**
 * Created by Lwang on 2017/3/6.
 * 个人信息业务
 */
import { square,ajax} from './resize.js';
import {way} from "./common.js";
import $ from "jquery";
square(document,window);
$(function () {
    way._login(() => {
        $.ajax({
            url:ajax.teacherInfo,
            xhrFields: {withCredentials: true},
            success:(res) => {
                if(!res.code){
                    $(".user-img").find("img").attr("src",res.headImg);
                    $("#nickName").html("").html(res.nickName);
                }else if(res.code == "10000"){

                }

            }
        });
    })
});
